import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const integration: AppRouteModule = {
  path: '/integration',
  name: 'integration',
  component: LAYOUT,
  redirect: '/integration/integrationWorkPlace',
  meta: {
    orderNo: 15,
    icon: 'material-symbols:integration-instructions-outline',
    title: t('routes.demo.integration.integrationManager'),
  },
  children: [
    {
      path: 'integrationWorkPlace',
      name: 'IntegrationWorkPlace',
      meta: {
        title: t('routes.demo.integration.integrationWorkPlace'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/integration/index.vue'),
    },
  ],
};

export default integration;
